﻿using com.guojin.core.io.message;
using com.guojin.core.io;

namespace com.guojin.mj.net.message.login
{
    public class Gethistory : Message
    {
        public static int TYPE = 7;
        public static int ID = 131;
        private int types;//0 代表 自己的战绩  1代表俱乐部战绩   2代表联盟战绩
        private string ids;//0自己的id            俱乐部ID              联盟ID
        public static Gethistory Create(int ty, string id) {
            Gethistory gc = new Gethistory();
            gc.types = ty;
            gc.ids = id;
            return gc;
        }
        public void decode(core.io.Input _in)
        {

        }

        public void encode(Output _out)
        {
            _out.writeInt(types);
            _out.writeString(ids);
        }

        public int getMessageId()
        {
            return ID;
        }

        public int getMessageType()
        {
            return TYPE;
        }

        public string toString()
        {
            return "types"+ types;
        }
    }
}